Proteopedia:Cookbook

Side by side still images
To arrange still images side by side on a page, insert them in a table

Rectangular Jmol Structure Applets
jslibrary describes: For a rectangular Jmol structure applet, an array containing two elements, width and height; this is usually easiest to do using JavaScript square bracket notation for array constants, as in [400, 200], ["50%", "100%"] or [0.5, 1.0]. Proteopedia currently only accepts integers, as in this example size='[800,200]'



.mov
file=Sample iTunes.mov|width=640|height=496|autoplay=true|controller=true|loop=true

file=film.mov|width=640|height=496|autoplay=true|controller=true|loop=true Shows the movie with the with a width of 640 and a height of 496 pixels that starts playing as soon as its loaded.

A movie controller is also displayed at the bottom beneath the movie. If the height is too small, the controller will not be displayed. Cicking on the movie stops playing, and double clicking resumes playing in both Mac OS X and Windows. This is useful in case the controller is not displayed ("controller=false").

file=film.mov|width=320|height=240|autoplay=false|controller=true Shows the movie with the with a width of 320 and a height of 240 pixels that does not play when loaded, but waits for the user to click on the play button.

Attribute Reference
 * width=px or % (Modify the width of the object)
 * height=px or a% (Modify the height of the object)
 * autoplay=true/false (Start playing the file or wait at first frame, default:true)
 * controller=true/false (Show the controller, default:true)
 * loop=true/false (Plays again and again, default:false)

For more information, see mediawiki.org/wiki/Extension:Quicktime.

.mpeg
The same syntax and attributes also work with mpeg format movies. For an example, please see Flagella%2C_bacterial.

file=FlagellarAssembly.mpeg|width=320|height=240|autoplay=false|controller=true

Quiz
The special implementation of Quiz in Proteopedia includes an email feedback to the teacher. See overview at Help:Quiz and the full explanation and examples on How To Use at Help:Quiz at Wikiversity. { Name a famous Greek philosopher. { Aristotle|Plato }
 * type="{}"}

{Question + Correct answer. - Incorrect answer. + Correct answer. - Incorrect answer.
 * type="[]"}

Imagemaps
In the image map below, clicking on the computer screen should lead you to 2ace, the keyboard to 1rat, and the thinking balloon to Believe It or Not!. A click on the person's head goes to the external article on Student at Wikipedia. The (i) goes to the image info.

 

Here's a nice tool for finding the coordinates in an image.

Theoretical Models
On pages that largely or entirely concern theoretical model structures, please insert   in the top of the wikitext box. It will generate this banner:

If a page shows largely empirical models, but also one or more theoretical models, please put Theoretical Model in the text, and/or as a caption in Jmol whenever the model is theoretical:
 * The wikitext is: Theoretical Model 
 * To add the red caption to a scene, use the "labels" tab in the Scene Authoring Tools and open the "caption" section.

Policy concerning theoretical models is at Proteopedia:Policy, where you will also find links to examples.

Anchors
Section headings automatically act as anchors, with the heading text as the "anchor_name". Links of the form will link to the first anchor on the page matching that "anchor_name", usually the first identical section heading.

For example, try  and   to jump to those sections.

Floating quote Box
There was nothing so very remarkable in that; nor did Alice think it so very much out of the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually took a watch out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge.





Flash
This loads a local .swf file. The interactive feature works fine. Click buttons and slide controls to try. /wiki/images/8/8c/7_scrolling.swf

KiNG
To insert a KiNG (Kinemage, Next Generation) applet use this tag and provide as file the name of a Kinemage uploaded file: <kinemage align="left" width="420" height="300" file="HbAllo.kin"/></PRE> <kinemage align="left" width="420" height="300" file="HbAllo.kin"/>